package com.fancy.projecty.mapper;

import com.fancy.projecty.pojo.WaterIntermediateRole;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface WaterIntermediateRoleMapper {

	/**
	 * (#{username},#{roleId})
	 *
	 * @param map
	 * @return
	 */
	int insertIntermediateRole(Map<String, Object> map);

	/**
	 * 根据用户名删除当前用户的角色关联关系
	 *
	 * @return
	 */
	int deleteIntermediateRoleByUsername(String username);


	void deleteIntermediateRoleByRoleId(WaterIntermediateRole waterIntermediateRole);

	/**
	 *
	 * @param waterIntermediateRole
	 * @return
	 */
	int updateIntermediateRole(WaterIntermediateRole waterIntermediateRole);


    List<String> findRoleByUserName(String agentUsername);

//	Integer updateSatffByIntermediateRole(WaterStaffBo waterStaffBo);

    List<WaterIntermediateRole> findUserNameByRoleId(Integer id);

	Integer updateRoleIdByUserName(WaterIntermediateRole waterIntermediateRole);

}